package po

import (
	"gorm.io/gorm"
)

type Post struct {
	gorm.Model
	Title     string `json:"title"`
	Content   string `json:"content"`
	Cid       uint   `json:"cid"`
	Uid       int64  `json:"uid"`
	PId       int64  `json:"pId"`
	DiggCount int    `json:"diggCount"`
}

func (Post) TableName() string {
	return "post"
}
